package com.three.crm.http;

import android.text.TextUtils;


import com.three.crm.util.AppManager;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * Created by lqd on 2022-06-15.
 */

public class HttpParamsUtils {

    private static final Map<String, String> extHeaderMaps = new ConcurrentHashMap<String, String>();

    public static Map<String, String> getExtHeaderMaps() {
        if (!TextUtils.isEmpty(AppManager.getToken())) {
            extHeaderMaps.put("Authorization",AppManager.getToken());
        }
        extHeaderMaps.put("Content-Type", "application/json");
        return extHeaderMaps;
    }
}
